<?php
/**
 * Class Carousel
 * Desc  轮播Model
 * Create on 2021/8/3 14:53
 * Create by wangyafang
 */

namespace app\api\model\xyb;


use addons\xyb\XypHelper;

class Carousel extends Base
{
    protected $name = 'xyb_carousel';

    protected $type = [
        'createtime'  =>  'timestamp:Y-m-d H:i:s',
    ];

    public function getImageAttr($value)
    {
        return XypHelper::xyb_full_url($value);
    }
}